package com.etl.es.charts.base;

import com.google.common.collect.Lists;
import lombok.*;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

@Data
@Builder
@ToString
@EqualsAndHashCode
@NoArgsConstructor
@AllArgsConstructor
public class ChartResult implements Serializable {

    private static final long serialVersionUID = -2472055909041748042L;

    /**
     * 列数据
     */
    private List<String> columns;

    /**
     * 每列对应的数据
     */
    @Builder.Default
    private List<Map<String, Object>> rows = Lists.newArrayList();
}
